.mini_box {
  width: 310px;
  user-select: none;
  z-index: 10;
  position: fixed;
  left: 27px;
  bottom: 50px;
  height: 50px;
  background: white;
  box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.2);
  .bottom_box {
    height: 50px;
    width: 310px;
    display: flex;
  }
  .imgbox {
    height: 50px;
    width: 50px;
    overflow: hidden;
    position: relative;
    img {
      width: 100%;
      height: 100%;
    }
    .mask {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
    }
    .mask:hover {
      cursor: move;
    }
  }
  .switch_box {
    width: 180px;
    height: 50px;
    position: relative;
  }
  .info {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 180px;
    height: 50px;
    div {
      box-sizing: border-box;
      width: 100%;
      height: 25px;
      line-height: 25px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .name {
      padding: 0px 10px;
      font-size: 14px;
    }
    .lyrics {
      padding: 0px 10px;
      font-size: 12px;
      color: $primary;
      ul {
        width: 100%;
        li {
          height: 25px;
          line-height: 25px;
          width: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
  }
  .control {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 180px;
    height: 100%;
    display: flex;
    padding: 0px 10px;
    box-sizing: border-box;
    background: white;
    opacity: 0;
    transition: 0.5s;
    div {
      width: 50px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      i {
        font-size: 40px;
        color: $primary;
      }
      i:hover {
        cursor: pointer;
      }
    }
    .play_pause {
      width: 60px;
      i {
        font-size: 50px;
      }
    }
  }
  .control:hover {
    opacity: 1;
  }
  .other {
    display: flex;
    div {
      height: 100%;
      width: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      span {
        font-size: 30px;
      }
      span:hover {
        cursor: pointer;
      }
    }
  }
}
// .model {
//   width: 45px;
//   height: 100%;
//   display: flex;
//   justify-content: center;
//   align-items: center;
//   i {
//     font-size: 25px;
//   }
//   i:hover {
//     cursor: pointer;
//   }
// }
.playlist {
  height: 400px;
  width: 100%;
  position: absolute;
  left: 0;
  opacity: 1;
  // top: 50px;
  // top时的阴影
  box-shadow: 0px 20px 40px -15px rgba(0, 0, 0, 0.2);
  background: white;
  // bottom: 50px;
  // bottom时的阴影
  // box-shadow: 0px -20px 50px -15px rgba(0, 0, 0, 0.2);
  padding: 5px 0px;
  box-sizing: border-box;
  .item {
    z-index: 1;
    line-height: 30px;
    height: 30px;
    color: rgb(143, 141, 141);
    font-size: 14px;
    width: 100%;
    vertical-align: middle;
    display: flex;
    .gif {
      padding-left: 10px;
    }
    .name {
      vertical-align: middle;
      padding: 0px 10px;
      display: inline-block;
      flex: auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .active_color {
      color: $active;
    }
    .delete {
      vertical-align: middle;
      width: 30px;
      display: inline-block;
      height: 30px;
      line-height: 30px;
      text-align: center;
      padding-right: 10px;
    }
    .delete:hover {
      color: crimson;
    }
  }
  .item:hover {
    cursor: pointer;
    background: $active;
    color: white;
  }
  .item:hover .name {
    color: white !important;
  }
}
.fade-enter-active,
.fade-leave-active {
  transition: all 0.8s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  height: 0;
  opacity: 0;
}
@media (max-width: 600px) {
  .mini_box {
    width: 100vw;
    left: 0;
    bottom: 0;
  }
  .bottom_box {
    width: 100vw !important;
  }
  .switch_box {
    width: calc(100vw - 8.125rem) !important;
    display: flex;
    justify-content: center;
    .info {
      width: 100%;
    }
  }
  .playlist {
    height: 50vh;
  }
  .control {
    display: none !important;
  }
}
@media (min-width: 1920px) {
  .mini_box {
    width: 310px;
    user-select: none;
    z-index: 10;
    position: fixed;
    left: 70px;
    bottom: 100px;
  }
}
